package com.zhang.modules.file.entity.cmd;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * A DTO for the {@link com.zhang.modules.file.entity.CosFileInfo} entity
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FileNamePageCmd implements Serializable {
    @Size(max = 255)
    private String objectKey;

    @NotNull(message = "页码不能为空")
    private int pageNum;

    @NotNull(message = "分页大小不能为空")
    private int pageSize;
}